Xbasic

IsShortTime Function

Syntax

Result_Flag as L = IsShorttime(C Source)

Arguments

Result_Flag

.T. = Indicates that the Time_String can be interpreted as a valid short time. .F. = Time_String can not be interpreted as a valid short time.

Source

A character representation of a short time value.

Description

Returns true is the string value is a valid short time.

Discussion

The IsShortTime() function returns .T. if the Time_String is a valid representation of a short time value. Note : A Short Time value does not include a date component.

Example

put description here

? isshorttime("10:00:00 00 am")
= .T.
? istime("10/15/2003 10:00:00 00 am")
= .F.
? istime("10/15/2003")
= .F.

See Also